package com.wanmait.baohan.util;

import java.text.SimpleDateFormat;
import java.util.Date;

//工号
public class JobNumber {

public static String creatJobNumber(Integer num){
           String todayNum = null;
           if (num / 10 == 0){
               todayNum = "0" + num;
           } else {
               todayNum = num+"";
           }
           String dateNowStr = new SimpleDateFormat("yyyyMMdd").format(new Date());
           dateNowStr.substring(2);
           return dateNowStr.substring(2)+todayNum;
   }

}
